home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Source Code
/
C
/
Frameworks
/
Grant's CGI Framework 1.0b12
/
Util
/
Version.c
< prev
next >
Wrap
Text File
|
1995-12-09
|
899b
|
45 lines
/*****
*
* Version.c
*
* This is a support file for "Grant's CGI Framework".
* Please see the license agreement that accompanies the distribution package
* for licensing details.
*
* Copyright ©1995 by Grant Neufeld
* grant@acm.com
* http://arpp1.carleton.ca/grant/
*
*****/
#include "compiler_stuff.h"
#include "Version.h"
/*** FUNCTIONS ***/
/* set the versionString to the short version string from the 'vers' resource with ID resID */
void
VersionGetShort ( short resId, Str255 versionString )
{
Handle resource;
/* Get the resource */
resource = GetResource ( 'vers', resId );
if ( resource == nil )
{
versionString[0] = nil;
return;
}
/* The short description (pascal) string starts at the 7th byte */
BlockMove ( (StringPtr) (*resource) + 6, versionString, (*resource)[6] + 1 );
ReleaseResource ( resource );
} /* VersionGetShort */
/***** EOF *****/